/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package test1.problem2;


/**
 *
 * @author hoang.pt
 */
public class MutiDemoJoin {


    public static void main(String[] a) {
        //init Data
        Data d = new Data();

        //init thread
        Thread3 t1 = new Thread3(d);
        Thread4 t2 = new Thread4(d);


        try {
            //join
            t1.t.join();
            t2.t.join();
        } catch (InterruptedException ex) {
        }
    }
}
